/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package enterprise.ent;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author JAVIER
 */
@Embeddable
public class DeportesTiposLigaPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "id_deporte")
    private int idDeporte;
    @Basic(optional = false)
    @NotNull
    @Column(name = "id_tipo_liga")
    private int idTipoLiga;

    public DeportesTiposLigaPK() {
    }

    public DeportesTiposLigaPK(int idDeporte, int idTipoLiga) {
        this.idDeporte = idDeporte;
        this.idTipoLiga = idTipoLiga;
    }

    public int getIdDeporte() {
        return idDeporte;
    }

    public void setIdDeporte(int idDeporte) {
        this.idDeporte = idDeporte;
    }

    public int getIdTipoLiga() {
        return idTipoLiga;
    }

    public void setIdTipoLiga(int idTipoLiga) {
        this.idTipoLiga = idTipoLiga;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idDeporte;
        hash += (int) idTipoLiga;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof DeportesTiposLigaPK)) {
            return false;
        }
        DeportesTiposLigaPK other = (DeportesTiposLigaPK) object;
        if (this.idDeporte != other.idDeporte) {
            return false;
        }
        if (this.idTipoLiga != other.idTipoLiga) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "enterprise.ent.DeportesTiposLigaPK[ idDeporte=" + idDeporte + ", idTipoLiga=" + idTipoLiga + " ]";
    }
    
}
